<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./vue.js"></script>
</head>
<body>
    <div id="app">
        <h2>{{msg}}</h2>
        <h3 v-text='msg'></h3>
        <h4 v-html='msg'></h4>
        <h4 v-html='msg1'></h4>

        <div v-pre>  {{msg}}</div>
    </div>

    <script>
        let vm=new Vue({
            el:"#app",
            data:{
                msg:"hello vue",
                msg1:"<span>  我是一个有标签的文本</span>"
            }
        })
    </script>
</body>
</html>